package com.atguigu.gulimall.member.client;

import com.atguigu.common.utils.R;
import com.atguigu.gulimall.member.client.handler.CouponHistoryServiceHandler;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.Map;

@Component
@FeignClient(value = "gulimall-service-coupon",fallback = CouponHistoryServiceHandler.class)
public interface CouponHistoryService {
    @RequestMapping("/coupon/couponhistory/list")
    public R list(@RequestParam Map<String, Object> params);
}
